import axios from '@/libs/api.request'
import config from '@/config'
export const newsList = (data) => {
  return axios.request({
    url: '/api/us/ctc/ctcnewsinfodao/newsList',
    type: 'post',
    data: data
  })
}

export const NewsByIdList = (data) => {
  return axios.request({
    url: '/api/uc/ctc/ctcNewsInfoService/NewsByIdList',
    type: 'post',
    data: data
  })
}

export const updateReaderCount = (data) => {
  return axios.request({
    url: '/api/uc/ctc/ctcNewsInfoService/updateReaderCount',
    type: 'post',
    data: data
  })
}

export const deleteGoodCount = (data) => {
  return axios.request({
    url: '/api/us/ctc/ctcnewsinfodao/deleteGoodCount',
    type: 'post',
    data: data
  })
}

export const getGoodCount = (data) => {
  return axios.request({
    url: '/api/us/ctc/ctcnewsinfodao/getGoodCount',
    type: 'post',
    data: data
  })
}

export const insertGoodCount = (data) => {
  return axios.request({
    url: '/api/us/ctc/ctcnewsinfodao/insertGoodCount',
    type: 'post',
    data: data
  })
}

export const statuteInfoList = (data) => {
  return axios.request({
    url: '/api/us/ctc/ctcstatuteinfodao/statuteInfoList',
    type: 'post',
    data: data
  })
}

export const getStatuteInfoById = (data) => {
  return axios.request({
    url: '/api/us/ctc/ctcstatuteinfodao/getStatuteInfoById',
    type: 'post',
    data: data
  })
}

export const houseHoldList = (data) => {
  return axios.request({
    url: '/api/us/ctc/ctchouseholdinfodao/houseHoldList',
    type: 'post',
    data: data
  })
}

export const eduAnencyList = (data) => {
  return axios.request({
    url: '/api/us/ctc/ctceduagencyinfodao/eduAnencyList',
    type: 'post',
    data: data
  })
}

export const familyEduList = (data) => {
  return axios.request({
    url: '/api/us/ctc/ctcfamilyeduinfodao/familyEduList',
    type: 'post',
    data: data
  })
}

export const getEduAgency = (data) => {
  return axios.request({
    url: '/api/us/ctc/ctceduagencyinfodao/getEduAgency',
    type: 'post',
    data: data
  })
}

export const getFamilyEdu = (data) => {
  return axios.request({
    url: '/api/us/ctc/ctcfamilyeduinfodao/getFamilyEdu',
    type: 'post',
    data: data
  })
}

export const getHouseHold = (data) => {
  return axios.request({
    url: '/api/us/ctc/ctchouseholdinfodao/getHouseHold',
    type: 'post',
    data: data
  })
}

export const ActList = (data) => {
  return axios.request({
    url: '/api/us/ctc/ctcactinfodao/ActList',
    type: 'post',
    data: data
  })
}

export const updateSignUpNum = (data) => {
  return axios.request({
    url: '/api/us/ctc/ctcactinfodao/updateSignUpNum',
    type: 'post',
    data: data
  })
}

export const createSignUp = (data) => {
  return axios.request({
    url: '/api/uc/ctc/CtcActInfoService/createSignUp',
    type: 'post',
    data: data
  })
}

export const actInfoList = (data) => {
  return axios.request({
    url: '/api/uc/ctc/CtcActInfoService/actInfoList',
    type: 'post',
    data: data
  })
}

export const getAllAct = (data) => {
  return axios.request({
    url: '/api/us/ctc/ctcactinfodao/getAllAct',
    type: 'post',
    data: data
  })
}

export const getHotAct = (data) => {
  return axios.request({
    url: '/api/us/ctc/ctcactinfodao/getHotAct',
    type: 'post',
    data: data
  })
}

export const hotActList = (data) => {
  return axios.request({
    url: '/api/us/ctc/ctcactinfodao/hotActList',
    type: 'post',
    data: data
  })
}

export const getActInfoById = (data) => {
  return axios.request({
    url: '/api/us/ctc/ctcactinfodao/getActInfoById',
    type: 'post',
    data: data
  })
}

export const updateGoodDel = (data) => {
  return axios.request({
    url: '/api/us/ctc/ctcnewsinfodao/updateGoodDel',
    type: 'post',
    data: data
  })
}

export const updateGoodOn = (data) => {
  return axios.request({
    url: '/api/us/ctc/ctcnewsinfodao/updateGoodOn',
    type: 'post',
    data: data
  })
}

export const userImgList = (data) => {
  return axios.request({
    url: '/api/us/ctc/ctcactinfodao/userImgList',
    type: 'post',
    data: data
  })
}

export const newsSearchList = (data) => {
  return axios.request({
    url: '/api/us/ctc/ctcnewsinfodao/newsSearchList',
    type: 'post',
    data: data
  })
}

export const getTitleById = (data) => {
  return axios.request({
    url: '/api/us/ctc/ctcnewsinfodao/getTitleById',
    type: 'post',
    data: data
  })
}

export const findNewsList = (data) => {
  return axios.request({
    url: '/api/us/ctc/ctcnewsinfodao/findNewsList',
    type: 'post',
    data: data
  })
}

export const saveComment = (data) => {
  return axios.request({
    url: '/api/uc/ctc/ctcNewsInfoService/saveComment',
    type: 'post',
    data: data
  })
}

export const saveGoodCount = (data) => {
  return axios.request({
    url: '/api/uc/ctc/ctcNewsInfoService/saveGoodCount',
    type: 'post',
    data: data
  })
}

export const saveCollection = (data) => {
  return axios.request({
    url: '/api/uc/ctc/ctcNewsInfoService/saveCollection',
    type: 'post',
    data: data
  })
}
// 申领电子卡
export const applyCard = (data) => {
  return axios.request({
    url: '/api/uc/ctc/CtcCardHandleInfoService/applyCard',
    type: 'post',
    data: data
  })
}
// 社保卡升级市民卡
export const upgradeCard = (data) => {
  return axios.request({
    url: '/api/uc/ctc/CtcCardHandleInfoService/upgradeCard',
    type: 'post',
    data: data
  })
}
// 获取预约须知
export const getInstructionOut = () => {
  return axios.request({
    url: '/api/uc/ctc/involveOutMarriageService2/getInstructionOut',
    type: 'get'
  })
}
// 获取机构
export const queryOrgOut = () => {
  return axios.request({
    url: '/api/uc/ctc/involveOutMarriageService2/queryOrgOut',
    type: 'get'
  })
}
// 获取业务
export const queryBusinessOut = () => {
  return axios.request({
    url: '/api/uc/ctc/involveOutMarriageService2/queryBusinessOut',
    type: 'get'
  })
}
// 根据业务获取申请条件
export const getConditionOut = (data) => {
  return axios.request({
    url: '/api/uc/ctc/involveOutMarriageService2/getConditionOut',
    type: 'post',
    data: data
  })
}
// 获取证件类型
export const queryCertTypeOut = () => {
  return axios.request({
    url: '/api/uc/ctc/involveOutMarriageService2/queryCertTypeOut',
    type: 'get'
  })
}
// 获取补办证件性别
export const querySexOut = () => {
  return axios.request({
    url: '/api/uc/ctc/involveOutMarriageService2/querySexOut',
    type: 'get'
  })
}
// 发送验证码
export const sendVfCodeOut = (data) => {
  return axios.request({
    url: '/api/uc/ctc/involveOutMarriageService2/sendVfCodeOut',
    type: 'post',
    data: data
  })
}
// 获取可预约的日期及预约数
export const queryValidDateOut = (data) => {
  return axios.request({
    url: '/api/uc/ctc/involveOutMarriageService2/queryValidDateOut',
    type: 'post',
    data: data
  })
}
// 获取指定日期可以预约的时间及预约数
export const queryValidTimeOut = (data) => {
  return axios.request({
    url: '/api/uc/ctc/involveOutMarriageService2/queryValidTimeOut',
    type: 'post',
    data: data
  })
}
// 预约登记提交
export const submitInfoOut = (data) => {
  return axios.request({
    url: '/api/uc/ctc/involveOutMarriageService2/createSubmitInfoOut',
    type: 'post',
    data: data
  })
}
// 查询预约信息
export const queryInfoOut = (data) => {
  return axios.request({
    url: '/api/uc/ctc/involveOutMarriageService2/queryInfoOut',
    type: 'post',
    data: data
  })
}
// 我的预约
export const myQueryInfoOut = (data) => {
  return axios.request({
    url: '/api/uc/ctc/involveOutMarriageService2/myQueryInfoOut',
    type: 'post',
    data: data
  })
}
// 取消预约
export const cancelPreOut = (data) => {
  return axios.request({
    url: '/api/uc/ctc/involveOutMarriageService2/updateCancelPreOut',
    type: 'post',
    data: data
  })
}

export const checkVfCodeOut = (data) => {
  return axios.request({
    url: '/api/uc/ctc/involveOutMarriageService2/checkVfCodeOut',
    type: 'post',
    data: data
  })
}

export const getCodePic = (data) => {
  return axios.request({
    url: '/api/uc/smc/smsService/getCodePic',
    type: 'post',
    data: data
  })
}
// 短信验证码
export const createVerificationCode = (data) => {
  return axios.request({
    url: '/api/uc/smc/smsService/createVerificationCode',
    type: 'post',
    data: data
  })
}

export const checkVerificationCode = (data) => {
  return axios.request({
    url: '/api/uc/ctc/CtcCardHandleInfoService/checkVerificationCode',
    type: 'post',
    data: data
  })
}
// 查询用户是否实名制
export const getRealState = (data) => {
  return axios.request({
    url: '/api/us/ctc/ctccardhandelinfo/getRealState',
    type: 'post',
    data: data
  })
}
// 身份证识别
export const newCheckSfz = (data) => {
  return axios.request({
    url: '/Api/Api/yunMaiOrc/cid/' + config.company_code,
    type: 'get',
    php: true,
    data: data
  })
}
// 市民卡实名认证
export const realVerification = (data) => {
  return axios.request({
    url: '/api/uc/ctc/CtcCardHandleInfoService/realVerification',
    type: 'post',
    data: data
  })
}
// 查询是否领取过市民卡
export const getCardState = (data) => {
  return axios.request({
    url: '/api/uc/ctc/CtcCardHandleInfoService/getCardState',
    type: 'post',
    data: data
  })
}
// 领取电子市民卡
export const createEleCard = (data) => {
  return axios.request({
    url: '/api/uc/ctc/CtcCardHandleInfoService/createEleCard',
    type: 'post',
    data: data
  })
}
// 生成二维码
export const info = (data) => {
  return axios.request({
    url: '/api/us/mc/shopcommon/info',
    type: 'post',
    data: data
  })
}
// 投诉建议
export const createSuggestion = (data) => {
  return axios.request({
    url: '/api/uc/ctc/CtcComplaintSuggestionInfoService/createSuggestion',
    type: 'post',
    data: data
  })
}
// 获取订单状态
export const getShowSaleList = (data) => {
  return axios.request({
    url: '/api/uc/tc/assembleOrderService/getShowSaleList',
    type: 'post',
    data: data
  })
}

// 补贴
export const storeSubsidyList = (data) => {
  return axios.request({
    url: '/api/us/ctc/ctcactinfodao/storeSubsidyList',
    type: 'post',
    data: data
  })
}
